<%--
  Created by IntelliJ IDEA.
  User: zhangkeke
  Date: 2022/10/15
  Time: 07:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title></title>
    <script src="${pageContext.request.contextPath}/jcript/jquery-1.7.2.js"></script>
    <script>
        $(function (){
            $.ajax({
                url:"/showRecord",
                dataType:"json",
                success:function (data){
                    for(var i =0 ;i<=data.length;i++){
                        var datum = data[i];
                        $("#table").append(" <tr>\n"+
                                "       <td>"+datum.outPutCard_Id+"</td>\n"+
                                "       <td>"+datum.inPutCard_Id+"</td>\n"+
                                "       <td>"+datum.date+"</td>\n"+
                                "       <td>"+datum.action+"</td>\n"+
                                "       <td>"+datum.money+"</td>\n"+
                    "    </tr>")
                    }
                }
            })
        })
    </script>
</head>
<body>


<table id="table" >
    <tr>
        <td>支出账号</td>
        <td>收入账号</td>
        <td>交易日期</td>
        <td>业务类型</td>
        <td>交易金额</td>
    </tr>

</table>

</body>
</html>
